package com.its.manager.pojo;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 
 * @TableName gym_role
 */
@TableName(value ="gym_role")
@Data
public class Role implements Serializable {
    /**
     * 角色ID
     */
    @TableId(type = IdType.AUTO)
    private Long rid;

    /**
     * 角色姓名
     */
    @TableField(value = "roleName")
    private String roleName;

    /**
     * 角色功能描述
     */
    @TableField(value = "roleDesc")
    private String roleDesc;

    /*
    * 存储角色的权限信息
    * */
    /*@TableField(exist = false)
    private List<Permission> permissions;*/

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}